package com.youi.service;

import com.alibaba.fastjson.JSONObject;
import com.youi.entity.Merchant;
import com.youi.exception.BusinessException;

import java.io.IOException;
import java.util.List;

public interface MerchantService extends BaseService<Merchant>{

	/**
	 * 添加商家后台用户主账号
	 * @param merchantId
	 * @param account
	 * @param password
	 */
	public void addMerchantSysuer(Long merchantId,String account,String password,Integer status);
	
	/**
	 * 获取商家信息
	 * @param merchantList
	 */
	public void getMerchantMsg(List<Merchant> merchantList);
	
	/**
	 * 获取商家信息
	 * @param merchant
	 */
	public void getMerchantMsg(Merchant merchant);

	/**
	 * 易宝入网
	 * @param id
	 */
	public JSONObject enterMerchantToYibao(Long id) throws BusinessException, IOException;
}